package com.mepo.cheer.shared;

import java.util.LinkedHashMap;

import com.google.gwt.user.client.Command;
import com.mepo.cheer.client.MepoCheerTempate;
import com.mepo.cheer.client.pages.PhotosPage;

public class Photos extends MepoMenuType {

	private static final long serialVersionUID = 1L;
	private String header;
	private LinkedHashMap<String, String> photoSets;
	
	public String getHeader() {
		return header;
	}
	public void setHeader(String header) {
		this.header = header;
	}
	public LinkedHashMap<String, String> getPhotoSets() {
		return photoSets;
	}
	public void setPhotoSets(LinkedHashMap<String, String> photoSets) {
		this.photoSets = photoSets;
	}
	
	public void addPhotoSet(String label, String embedCode) {
		if(photoSets == null) {
			photoSets = new LinkedHashMap<String, String>();
		}
		photoSets.put(label, embedCode);
	}
	
	@Override
	public Command getOnClickCommand() {
		return new Command() {
			@Override
			public void execute() {
				MepoCheerTempate.setContent(new PhotosPage(Photos.this));
			}
		};
	}
}
